﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using RooHui.OA.Biz;
using RooHui.Infrastructure.Entities.Enum;
using RooHui.Tool;
using RooHui.OA.Web.Model;
using System.IO;
using System.Drawing;
using RooHui.Infrastructure.Entities.Entity;

namespace RooHui.Admin.Web.Controllers
{
    public class RepayController : Controller
    {
        //
        // GET: /Repay/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult RepayProject()
        {
            return View();
        }

        /// <summary>
        /// 分页获取项目信息
        /// </summary>
        /// <param name="page"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        [HttpPost]
        public ActionResult GetRepayProjListByPage(int page, int pageSize, int productID = -1, int guaranteeCompanyID = -1, string key = "")
        {
            int count = 0;
            var projectList = new List<Project>(); //ProjectBiz.GetProjectListByPage(page, pageSize, productID, guaranteeCompanyID, (int)ProjectStatus.Repayment, key, ref count);
            Dictionary<string, object> dic = new Dictionary<string, object>();
            dic.Add("Rows", projectList); 
            dic.Add("Total", count);
            return Content(dic.ToJson());
        }

        public ActionResult RepayList()
        {
            return View();
        }

        public ActionResult RepayDetails()
        {
            return View();
        }



    }
}
